package ge.lowlevel.js;

import ge.lowlevel.DrawEngine;
import ge.lowlevel.EngineFactory;
import ge.lowlevel.IOEngine;
import ge.lowlevel.SoundEngine;
import ge.lowlevel.UtilityEngine;
import ge.lowlevel.box2d.FactoryBox2D;
import ge.lowlevel.js.box2d.FactoryBox2DJs;
 

 

/**
 * 
 * @author Abel
 *	Initializes all the engines with the JS abstraction.
 */
public class EngineFactoryJS implements EngineFactory {

	@Override
	public void initEngines() 
	{
		//UtilityEngien
		UtilityEngine.set(new JSUtilityEngine());
		//DrawEngine
		DrawEngine.set(new JSDrawEngine());
		//SoundEngine
		SoundEngine.set(new JSSoundEngine());
		//IOEngine
		IOEngine.set(new JSIOEngine());
		//Box2D
		FactoryBox2D.set(new FactoryBox2DJs());

	}

}
